package student.stu23002123.chapter10;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class InpPutStream {
    public static void main(String[] args) {
         InpPutStream input = null;

        FileInputStream in = null;
        try {
            in = new FileInputStream("C:\\Users\\Administrator\\IdeaProjects\\java202312\\src\\student\\stu23002123\\chapter10\\text.txt");
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        }
        int b = 0;
        while(true){
            try {
                b=in.read();
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
            if(b==-1)
                break;
            System.out.println(b);
        }
    }
}
